
<?php

?>
    <!doctype html>
    <html>
    <head>
        <meta charset="utf-8">
        <title>用户登录</title>
    </head>
    <body>
    <form method="post">
        <table>
            <tr><th>用户名：</th><td><input type="text" name="username"/></td></tr>
            <tr><th>密码：</th><td><input type="password" name="password"/></td></tr>
            <tr><td></td><td><input type="checkbox" name="auto_login" value="on"/>下次自动登录</td></tr>
            <tr><td colspan="2">
                    <input type="submit" value="登录"/>
                    <input type="reset" value="重新填写"/>
                </td> </tr>
        </table>
    </form>
    </body>
    </html>
<?php if(!empty($error)): ?>
    <div class="error-box">登录失败，错误信息如下：
        <ul><?php foreach ($error as $v) echo "<li>$v</li>"; ?></ul>
    </div>
<?php endif; ?>